﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace Undercover.View.Game
{
    public partial class GamePage : PhoneApplicationPage
    {
        public GamePage()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //App.GameInstance = new Model.Game();
            //string[] item = bnNumberOfRoles.Text.Split(';');
            //int nMajorities = int.Parse(item[0]);
            //int nMinorities = int.Parse(item[1]);
            //int nAgents = int.Parse(item[2]);
            //Model.WordPair pair = new Model.WordPair();
            //pair.MajorityWord = "啤酒";
            //pair.MinorityWord = "香烟";
            //pair.CanSwap = false;
            //App.GameInstance.Setup(nMajorities, nMinorities, nAgents, pair);

            //this.NavigationService.Navigate(new Uri("/View/Game/BeReadyPage.xaml", UriKind.Relative));
        }

        //protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
        //{
        //    base.OnBackKeyPress(e);
        //    e.Cancel
        //}
    }
}